package com.buer.train.business.service;

import com.buer.train.business.domain.DeptDO;
import com.buer.train.common.utils.Tree;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * 部门管理
 * @date 2021-02-23 16:48:27
 */
public interface DeptService {
	
	DeptDO get(Integer deptId);
	
	List<DeptDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(DeptDO dept);
	
	int update(DeptDO dept);
	
	int remove(Integer deptId);
	
	int batchRemove(Integer[] deptIds);

    PageInfo<DeptDO> getDeptList(Map<String, Object> map);

    DeptDO getOne(Map<String, Object> map);

    Tree<DeptDO> getTree();

	int removeLoop(Integer deptId);

    Tree<DeptDO> getNodeDeptTree();
}
